package week9.Q1;

public class Fish extends Animal{
    private int weight;
    public Fish(int age,int weight){
        super(age);
        this.weight=weight;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
    public  void show(){
        System.out.println("我是一只"+getWeight()+"斤重的鱼，我今年"+getAge()+"岁");
    }
}
